package kr.co.mustgo.domain.product;

public class ProductSchedule {
	private int scheduleCode; //일정 코드
	private String scheduleLocation; //지역
	private String scheduleTime; //시간
	private String scheduleTraffic; //교통
	private String scheduleMeal; //식사
	private String hotelInfo; //숙소 정보
	private String scheduleDetail; //일정 정보 상세
	private String tourInfo; //여행 정보
	private String product_code; //상품 코드
	
	public ProductSchedule(){}

	public ProductSchedule(int scheduleCode, String scheduleLocation,
			String scheduleTime, String scheduleTraffic, String scheduleMeal,
			String hotelInfo, String scheduleDetail, String tourInfo,
			String product_code) {
		super();
		this.scheduleCode = scheduleCode;
		this.scheduleLocation = scheduleLocation;
		this.scheduleTime = scheduleTime;
		this.scheduleTraffic = scheduleTraffic;
		this.scheduleMeal = scheduleMeal;
		this.hotelInfo = hotelInfo;
		this.scheduleDetail = scheduleDetail;
		this.tourInfo = tourInfo;
		this.product_code = product_code;
	}

	public int getScheduleCode() {
		return scheduleCode;
	}

	public void setScheduleCode(int scheduleCode) {
		this.scheduleCode = scheduleCode;
	}

	public String getScheduleLocation() {
		return scheduleLocation;
	}

	public void setScheduleLocation(String scheduleLocation) {
		this.scheduleLocation = scheduleLocation;
	}

	public String getScheduleTime() {
		return scheduleTime;
	}

	public void setScheduleTime(String scheduleTime) {
		this.scheduleTime = scheduleTime;
	}

	public String getScheduleTraffic() {
		return scheduleTraffic;
	}

	public void setScheduleTraffic(String scheduleTraffic) {
		this.scheduleTraffic = scheduleTraffic;
	}

	public String getScheduleMeal() {
		return scheduleMeal;
	}

	public void setScheduleMeal(String scheduleMeal) {
		this.scheduleMeal = scheduleMeal;
	}

	public String getHotelInfo() {
		return hotelInfo;
	}

	public void setHotelInfo(String hotelInfo) {
		this.hotelInfo = hotelInfo;
	}

	public String getScheduleDetail() {
		return scheduleDetail;
	}

	public void setScheduleDetail(String scheduleDetail) {
		this.scheduleDetail = scheduleDetail;
	}

	public String getTourInfo() {
		return tourInfo;
	}

	public void setTourInfo(String tourInfo) {
		this.tourInfo = tourInfo;
	}

	public String getProduct_code() {
		return product_code;
	}

	public void setProduct_code(String product_code) {
		this.product_code = product_code;
	}

	@Override
	public String toString() {
		return "ProductSchedule [scheduleCode=" + scheduleCode
				+ ", scheduleLocation=" + scheduleLocation + ", scheduleTime="
				+ scheduleTime + ", scheduleTraffic=" + scheduleTraffic
				+ ", scheduleMeal=" + scheduleMeal + ", hotelInfo=" + hotelInfo
				+ ", scheduleDetail=" + scheduleDetail + ", tourInfo="
				+ tourInfo + ", product_code=" + product_code + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((hotelInfo == null) ? 0 : hotelInfo.hashCode());
		result = prime * result
				+ ((product_code == null) ? 0 : product_code.hashCode());
		result = prime * result + scheduleCode;
		result = prime * result
				+ ((scheduleDetail == null) ? 0 : scheduleDetail.hashCode());
		result = prime
				* result
				+ ((scheduleLocation == null) ? 0 : scheduleLocation.hashCode());
		result = prime * result
				+ ((scheduleMeal == null) ? 0 : scheduleMeal.hashCode());
		result = prime * result
				+ ((scheduleTime == null) ? 0 : scheduleTime.hashCode());
		result = prime * result
				+ ((scheduleTraffic == null) ? 0 : scheduleTraffic.hashCode());
		result = prime * result
				+ ((tourInfo == null) ? 0 : tourInfo.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ProductSchedule other = (ProductSchedule) obj;
		if (hotelInfo == null) {
			if (other.hotelInfo != null)
				return false;
		} else if (!hotelInfo.equals(other.hotelInfo))
			return false;
		if (product_code == null) {
			if (other.product_code != null)
				return false;
		} else if (!product_code.equals(other.product_code))
			return false;
		if (scheduleCode != other.scheduleCode)
			return false;
		if (scheduleDetail == null) {
			if (other.scheduleDetail != null)
				return false;
		} else if (!scheduleDetail.equals(other.scheduleDetail))
			return false;
		if (scheduleLocation == null) {
			if (other.scheduleLocation != null)
				return false;
		} else if (!scheduleLocation.equals(other.scheduleLocation))
			return false;
		if (scheduleMeal == null) {
			if (other.scheduleMeal != null)
				return false;
		} else if (!scheduleMeal.equals(other.scheduleMeal))
			return false;
		if (scheduleTime == null) {
			if (other.scheduleTime != null)
				return false;
		} else if (!scheduleTime.equals(other.scheduleTime))
			return false;
		if (scheduleTraffic == null) {
			if (other.scheduleTraffic != null)
				return false;
		} else if (!scheduleTraffic.equals(other.scheduleTraffic))
			return false;
		if (tourInfo == null) {
			if (other.tourInfo != null)
				return false;
		} else if (!tourInfo.equals(other.tourInfo))
			return false;
		return true;
	}
}
